package com.ea.config;
import com.baomidou.mybatisplus.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * MybatisPlus配置
 *
 * @author jun
 */
@Configuration
@EnableTransactionManagement
@MapperScan("com.ea.modular.dao")  //mybatis扫描注解，否则每个dao接口上都得加@Mapper注解也挺麻烦的
public class MybatisPlusConfig {

   

	/**
     * 分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
  
}
